package io.github.jsp.service;

import io.github.jsp.model.JobInfo;
import java.util.List;

public interface JobInfoService {
    
    JobInfo getById(Integer id);
    
    List<JobInfo> getAll();
    
    List<JobInfo> getByStatus(Integer status);
    
    List<JobInfo> getByTriggerStatus(Integer triggerStatus);
    
    List<JobInfo> getByGroup(String jobGroup);
    
    Integer save(JobInfo jobInfo);
    
    int update(JobInfo jobInfo);
    
    int updateTriggerTime(Integer id, Long triggerTime);
    
    int updateTriggerStatus(Integer id, Integer triggerStatus);
    
    int deleteById(Integer id);
    
    List<JobInfo> getSchedulableJobs();
}